home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 6
/
The Arsenal Files 6 (Arsenal Computer).ISO
/
wildcat
/
ctrl105.zip
/
CONTROL.WCX
(
.txt
)
< prev
next >
Wrap
Wildcat! WCX
|
1996-03-12
|
14KB
|
593 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 14041 bytes 01/28/123 08:37:16pm
'! Code Segment Size :6834 bytes
'! Data Segment Size :4791 bytes
'! String Segment Size:7207 bytes
'! Compiled with WCC version ? 019C017B
Declare Function Func1458(l65534 As Long, l65532 As Long) As Integer
Declare Sub Sub1930
Declare Function Func2701 As Integer
Declare Function Func5278 As Integer
Dim s4463 As String
Dim s4467 As String
Dim s4471 As String
Dim s4475(1 To 10) As String
Dim s4515 As String
Dim s4519 As String
Dim s4523 As String
Dim b4527 As Byte
Dim i4769 As Integer
Dim s4771 As String
Dim dt4775 As DateTime
Dim l4781 As Long
Dim i4785 As Integer
Dim s4787 As String
Dim l65526_ As Long
Dim i65530_ As Integer
Dim l65532_ As Long '! Temporary
s4463 = ProgPath + "CONTROL.CFG"
s4467 = ProgPath + "SECURITY.CFG"
s4471 = ProgPath + "DENIED.BBS"
CurrentDateTime dt4775
s4771 = FormatDate(dt4775.D, "mm/dd/yy") + " at " + FormatTime(dt4775.T, "hh:mm")
i4785 = 0
Cls
If Exists(s4467) Then
s4787 = UCase(s4787)
Open s4467 For Input As 3
Input #3, s4787
Close 3
If Not Exists(s4463) Then
Print
Print " @0C@Config not found - Running Configuration Utility!@0F@"
Print
Delay 1.5
Func2701
If Not Exists(s4463) Then
Beep
Print
Print " @0C@CONFIG@0F@ still not found! Exiting . . ."
Print
ActivityLog "wcCONTROL ■ Did not create a configuration file, please try again!"
Delay 1.5
End
End If
End If
282 If User.SecLevel = s4787 Then
Print
Print " @0F@┌ @3F@ wcCONTROL v1.05 @0F@ ┐"
Print " @0F@└ @0C@SysOp Access Only @0F@┘ "
Print
If InputYesNo(" @0B@Would you like to run the Configuration Utility? [@0F@y@0B@/@0F@N@0B@] ", 0) Then
Func2701
End If
End If
End If
348 Open s4463 For Input As 1
Input #1, l4781
Input #1, b4527
Input #1, s4515
Input #1, s4519
Input #1, s4523
Input #1, s4475(1)
Input #1, s4475(2)
Input #1, s4475(3)
Input #1, s4475(4)
Input #1, s4475(5)
Input #1, s4475(6)
Input #1, s4475(7)
Input #1, s4475(8)
Input #1, s4475(9)
Input #1, s4475(10)
Close 1
If Func1458(l4781, (47219)) Then
i4785 = -1
Else
786 i4785 = 0
End If
792 If i4785 = 0 Then
ActivityLog "*UNREGISTERED* wcCONTROL active! Please register today!"
Cls
Print
Print " @4F@ Security Check before running [@4E@ " + s4515 + " @4F@] @0F@"
Print
Print " @0B@Please support the BBSs you call! Send a few $ today!@0F@"
Print " @0F@wcCONTROL v1.05 ■ COPYRIGHT (C) 1995-96 Corinne King "
Print " @8C@* UNREGISTERED *@0C@ ■ 5 second delay ■ @0F@[@04@░░░░░░░░░░@0F@]";
Locate 6, 39
Print "@0C@██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██@0F@";
Delay 1
Print
End If
964
985 For i4769 = 1 To 10 Step 1
If User.SecLevel = s4475(i4769) Then
ActivityLog "wcCONTROL ■ Tried accessing " + UCase(s4515) + " on: " + s4771
Print
Beep
If Exists(s4471) Then
Cls
DisplayTextFile(s4471)
WaitEnter
End
Else
1155 Print
Print " @0C@Sorry, you must be a " + UCase(s4523) + " to access " + UCase(s4515) + "!"
Print
WaitEnter
End
End If
End If
1204 Next
1227 ActivityLog "wcCONTROL ■ Accessed " + UCase(s4515) + " on: " + s4771
If b4527 = 1 Then
Shell s4519, ""
Else
1290 If b4527 = 2 Then
Chain s4519, ""
Else
1323 If b4527 = 3 Then
GoToMenu(s4519)
Else
1352 ActivityLog "wcCONTROL ERROR!! Mistake in configuration!"
Beep
Print
Print "@0C@Mistake in configuration! Check path and program name!@0F@"
Delay 1.5
End If
End If
End If
1382
'! Called 2 times
Function Func1458(l65534 As Long, l65532 As Long) As Integer
Dim l65467 As Long
Dim i65471 As Integer
Dim l65473 As Long
Dim i65477 As Integer
Dim s65483 As String*7
Dim s65490 As String*30
Dim l65520 As Long
Dim l65524 As Long
Dim i65528 As Integer
s65490 = UCase(MakeWild.BBSName)
s65490 = Trim(s65490)
l65524 = 0
1535 For i65528 = 1 To Len(s65490) Step 1
l65524 = l65524 + Asc(Mid(s65490, i65528, 1))
Next
1639 s65483 = UCase(MakeWild.RegString)
s65483 = Trim(s65483)
l65520 = 0
1708 For i65528 = 1 To Len(s65483) Step 1
l65520 = l65520 + Asc(Mid(s65483, i65528, 1))
Next
1812 l65520 = l65520 + l65524
l65520 = l65520 * 13
l65520 = l65520 * l65532
l65520 = l65520 + l65532
If l65520 = l65534 Then
Func1458 = - 1
Else
1916 Func1458 = 0
End If
1922
End Function
'! Called 1 time
Sub Sub1930
Dim s65534 As String*1
Dim s65535 As String*1
s65535 = InputMask(" @4F@ Help with which? [@4E@1@4F@-@4E@6 S A H@4F@]: @0F@ ", "X", "", 1213417543)
s65534 = s65535
If s65534 = "1" Then
Print
Print " @0C@REGISTRATION NUMBER:"
Print
Print " @0F@Enter your registration number EXACTLY, or 0 (zero) if unregistered."
WaitEnter
Else
2030 If s65534 = "2" Then
Print
Print " @0C@PROGRAM TYPES:"
Print
Print " @0F@Only three choices are available - 1, 2, or 3."
Print " 1 = SHELL: Shelling to DOS (.EXE, .COM, .BAT)"
Print " 2 = CHAIN: Chaining a .WCX"
Print " 3 = MENU: Displaying a Menu"
Print
Print " Remember, this program is restricting access to a current menu option (or"
Print " menu) - you will need to run MAKEMENU and replace your current menu option "
Print " with wcCONTROL, do not add another menu option. You don't even have to redo"
Print " your display screens!"
Print
Print " For example: If you would like to restrict access to a door (perhaps LORD) "
Print " and MAKEWILD has been set to run LORD from a BATCH file, then you would "
Print " select 1 (one) and enter the full path and name for Option 4: (be sure you "
Print " know all your paths, etc) C:\WILDCAT\BATCH\LORD.BAT)."
WaitEnter
Else
2183 If s65534 = "3" Then
Print
Print " @0C@REFERENCE NAME:"
Print
Print " @0F@Just a short name to remember what this is configured for (ie, ROM DOOR)."
Print " This is used in the default display screen, the Activity Log notations, and"
Print " if unregistered, lets the user know what it is about to run...while waiting"
Print " for the delay to finish."
WaitEnter
Else
2260 If s65534 = "4" Then
Print
Print " @0C@PROGRAM's FULL PATH & NAME:"
Print
Print " @0F@Must be valid in order to work. Be sure to include the drive letter, "
Print " directory(ies), and filename to run. If you are restricting a MENU,"
Print " you must enter the name of the menu as it appears in the MAKEMENU"
Print " menu description."
Print " Example: C:\WILDCAT\BATCH\ROMDOOR.BAT, or DOORS MENU"
WaitEnter
Else
2346 If s65534 = "5" Then
Print
Print " @0C@Your Word/Phrase"
Print
Print " @0F@Just a word or short phrase to let the user know why he/she does not have"
Print " access to this option - for the default message only. If you are using"
Print " the DENIED.BBS display screen, this will not be used."
Print " Example: DONATING USER, REGISTERED MEMBER "
WaitEnter
Else
2423 If s65534 = "6" Then
Print
Print " @0C@Security Levels Denied Access"
Print
Print " @0F@You may enter up to TEN (10) valid security levels (as defined in "
Print " MAKEWILD) that you would like to DENY access for the menu/menu option."
WaitEnter
Else
2482 If s65534 = "S" Then GoTo 2520
If s65534 = "s" Then
2520 Print
Print " @0C@Save & Exit"
Print
Print " @0F@Save all your changes, and Exit Configuration Utility."
WaitEnter
Else
2551 If s65534 = "A" Then GoTo 2589
If s65534 = "a" Then
2589 Print
Print " @0C@Abort & Exit"
Print
Print " @0F@Abandon all changes (if any) and Exit Utility."
WaitEnter
Else
2620 If s65534 = "H" Then GoTo 2658
If s65534 = "h" Then
2658 Print
Print " @0C@HELP!"
Print
Print " @0F@Select the letter or number (from above) that you need more information"
Print " about."
WaitEnter
GoTo 2698
End If
End If
End If
End If
End If
End If
End If
End If
End If
2698
End Sub
'! Called 2 times
Function Func2701 As Integer
Dim l65528 As Long '! Temporary
Dim s65532 As String*1
Dim s65533 As String*1
If Exists(s4463) Then
Open s4463 For Input As 8
Input #8, l4781
Input #8, b4527
Input #8, s4515
Input #8, s4519
Input #8, s4523
Input #8, s4475(1)
Input #8, s4475(2)
Input #8, s4475(3)
Input #8, s4475(4)
Input #8, s4475(5)
Input #8, s4475(6)
Input #8, s4475(7)
Input #8, s4475(8)
Input #8, s4475(9)
Input #8, s4475(10)
Close 8
End If
3114
If Func1458(l4781, (47219)) Then
i4785 = -1
Else
3161 i4785 = 0
End If
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
3167 Cls
Print
Print "@0B@ wcCONTROL CONFIGURATION UTILITY v1.02"
Print
Print "@0B@ @08@COPYRIGHT (C) 1995-96 CORINNE KING"
Print "@08@ @0F@┌───────────────────────────────────────────────────────────────────────────┐"
Print "@0F@ │ @0B@OPTIONS: CURRENT SETTINGS: @0F@│"
Print "@0F@ └───────────────────────────────────────────────────────────────────────────┘"
Print "@0F@ @0C@1@0B@] Registration Number @0F@│ @0C@1@0B@] @0E@"; l4781
Print "@0B@ @0C@2@0B@] Program TYPE (1,2,3) @0F@│ @0C@2@0B@] @0E@"; b4527
Print "@0B@ @0C@3@0B@] Reference Name @0F@│ @0C@3@0B@] @0E@"; s4515
Print "@0B@ @0C@4@0B@] Program's FULL path & name @0F@│ @0C@4@0B@] @0E@"; UCase(s4519)
Print "@0B@ @0C@5@0B@] Your word/phrase @0F@│ @0C@5@0B@] @0E@"; s4523
Print "@0B@ @0F@───────────────────────────────────────────────────────────────────────────"
Print "@0F@ @0C@6@0B@] Security Levels DENIED Access:"
Print "@0B@ -> @0E@"; UCase(s4475(1)); Spc(3); UCase(s4475(2)); Spc(3); UCase(s4475(3)); Spc(3); UCase(s4475(4)); Spc(3); UCase(s4475(5))
Print "@0B@ -> @0E@"; UCase(s4475(6)); Spc(3); UCase(s4475(7)); Spc(3); UCase(s4475(8)); Spc(3); UCase(s4475(8)); Spc(3); UCase(s4475(10))
Print "@0B@ @0F@═══════════════════════════════════════════════════════════════════════════"
Print "@0F@ @0B@[@0E@H @0B@= @0F@HELP@0B@, @0E@S @0B@= @0F@SAVE & EXIT@0B@, @0E@A@0B@ = @0F@ABORT & EXIT@0B@] : @3F@Your Choice:@0E@ ";
Input s65533
s65532 = s65533
If (s65532 = "1") = 0 Then GoTo 3857
Print
l4781 = InputNumber(" @0B@Enter Registration Number, or 0 (zero) for unregistered: @0F@", - 2147483647, 2147483647)
If (l4781 = 0) = 0 Then GoTo 3845
Loop
3845 Loop
GoTo 5270
3857 If (s65532 = "2") = 0 Then GoTo 3926
Print
b4527 = InputNumber(" @0B@Enter Program Type: [@0F@1@0B@ = @0F@SHELL@0B@,@0F@ 2 @0B@=@0F@ CHAIN@0B@, @0F@3@0B@ = @0F@MENU@0B@] @0F@0@0B@ to Quit: @0F@", 0, 3)
If (b4527 = 0) = 0 Then GoTo 3914
Loop
3914 Loop
GoTo 5270
3926 If (s65532 = "3") = 0 Then GoTo 4014
Print
s4515 = InputMask(" @0B@Enter a reference name for your menu/menu option: @0F@", String(20, "X"), "", 1213417543)
If (s4515 = "") = 0 Then GoTo 4002
Loop
4002 Loop
GoTo 5270
4014 If (s65532 = "4") = 0 Then GoTo 4192
Print
Print " @0F@Please enter the FULL path and name of the program to run, or the"
Print " name of the MENU as entered in the MAKEMENU description:@0F@"
Print " (ie, C:\WILDCAT\BATCH\ROM.BAT, DOORS MENU, C:\WILDCAT\BATCH\DOOR.BAT)"
Print
Print " @0B@Control Program/Menu: @0F@"
Print " @0B@-> @0F@";
Input s4519
If (s4519 = "") = 0 Then GoTo 4111
Loop
4111 If (Not Exists(s4519)) = 0 Then GoTo 4180
Beep
Print
Print " @0C@ERROR!@0F@ You have specified an invalid path and/or filename."
Print " @0B@" + s4519 + "@0F@ is invalid."
WaitEnter
s4519 = ""
Loop
4180 Loop
GoTo 5270
4192 If (s65532 = "5") = 0 Then GoTo 4280
Print
s4523 = InputMask(" @0B@Enter word/phrase for no access: @0F@", String(30, "X"), "", 1213417543)
If (s4523 = "") = 0 Then GoTo 4268
Loop
4268 Loop
GoTo 5270
4280 If (s65532 = "6") = 0 Then GoTo 4318
Func5278
Loop
GoTo 5270
4318 If s65532 = "H" Then GoTo 4356
If (s65532 = "h") = 0 Then GoTo 4374
4356 Sub1930
Loop
GoTo 5270
4374 If s65532 = "S" Then GoTo 4412
If s65532 = "s" Then
4412 Open s4463 For Output As 9
Print #9, l4781
Print #9, b4527
Print #9, UCase(s4515)
Print #9, UCase(s4519)
Print #9, s4523
Print #9, UCase(s4475(1))
Print #9, UCase(s4475(2))
Print #9, UCase(s4475(3))
Print #9, UCase(s4475(4))
Print #9, UCase(s4475(5))
Print #9, UCase(s4475(6))
Print #9, UCase(s4475(7))
Print #9, UCase(s4475(8))
Print #9, UCase(s4475(9))
Print #9, UCase(s4475(10))
Close 9
Print
Print " @0F@Configuration saved as: @0B@"; UCase(s4463); "@0F@"
Delay 1.5
If i4785 = 0 Then
ActivityLog "*UNREGISTERED* wcCONTROL Configuration active! Please register today!"
Print
Print " @8C@* UNREGISTERED *@0C@ ■ 5 second delay ■ @0F@[@04@░░░░░░░░░░@0F@]";
Locate 22, 40
Print "@0C@██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██@0F@";
Delay 1
Print
End If
5031 Print
Print " wcCONTROL Configuration Utility Closing - Thank you for using it!"
Print " COPYRIGHT (C) 1995-96 CORINNE KING"
Delay 1.5
GoTo 5270
End If
5065 If s65532 = "A" Then GoTo 5103
If s65532 = "a" Then
5103 If i4785 = 0 Then
ActivityLog "*UNREGISTERED* wcCONTROL Configuration active! Please register today!"
Print
Print " @8C@* UNREGISTERED *@0C@ ■ 5 second delay ■ @0F@[@04@░░░░░░░░░░@0F@]";
Locate 20, 40
Print "@0C@██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██";
Delay 1
Print "██@0F@";
Delay 1
Print
End If
5230 Print
Print " wcCONTROL Configuration Utility Closing - Thank you for using it!"
Print " COPYRIGHT (C) 1995-96 CORINNE KING"
Delay 1.5
GoTo 5270
End If
5264 Loop
5270
End Function
'! Called 1 time
Function Func5278 As Integer
Dim s65530 As String*2
Dim s65532 As String*2
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
Do
5287 Cls
Print
Print "@0B@ wcCONTROL CONFIGURATION UTILITY v1.02 - SECURITY LEVELS"
Print "@0B@ @08@COPYRIGHT (C) 1995-96 CORINNE KING"
Print
Print "@08@ @0F@┌───────────────────────────────────────────────────────────────────────────┐"
Print "@0F@ │ @0B@DENY ACCESS TO THESE SECURITY LEVELS: @0F@│"
Print "@0F@ └───────────────────────────────────────────────────────────────────────────┘"
Print "@0F@ @0C@1@0B@] @0E@"; Pad(UCase(s4475(1)), 21); " @0F@│ @0C@6@0B@] @0E@"; UCase(s4475(6))
Print "@0B@ @0C@2@0B@] @0E@"; Pad(UCase(s4475(2)), 21); " @0F@│ @0C@7@0B@] @0E@"; UCase(s4475(7))
Print "@0B@ @0C@3@0B@] @0E@"; Pad(UCase(s4475(3)), 21); " @0F@│ @0C@8@0B@] @0E@"; UCase(s4475(8))
Print "@0B@ @0C@4@0B@] @0E@"; Pad(UCase(s4475(4)), 21); " @0F@│ @0C@9@0B@] @0E@"; UCase(s4475(9))
Print "@0B@ @0C@5@0B@] @0E@"; Pad(UCase(s4475(5)), 21); " @0F@│@0C@10@0B@] @0E@"; UCase(s4475(10))
Print "@0B@ @0F@═══════════════════════════════════════════════════════════════════════════"
Print "@0F@ @0B@[@0F@H @0B@= @0F@HELP@0B@, @0F@ENTER @0B@= @0F@PREV@0B@] : @3F@Your Choice:@07@ ";
Input s65532
s65530 = s65532
If (s65530 = "1") = 0 Then GoTo 5923
Print
s4475(1) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
5923 If (s65530 = "2") = 0 Then GoTo 6014
Print
s4475(2) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6014 If (s65530 = "3") = 0 Then GoTo 6105
Print
s4475(3) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6105 If (s65530 = "4") = 0 Then GoTo 6196
Print
s4475(4) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6196 If (s65530 = "5") = 0 Then GoTo 6287
Print
s4475(5) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6287 If (s65530 = "6") = 0 Then GoTo 6378
Print
s4475(6) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6378 If (s65530 = "7") = 0 Then GoTo 6469
Print
s4475(7) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6469 If (s65530 = "8") = 0 Then GoTo 6560
Print
s4475(8) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6560 If (s65530 = "9") = 0 Then GoTo 6651
Print
s4475(9) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6651 If (s65530 = "10") = 0 Then GoTo 6742
Print
s4475(10) = InputMask(" @0B@Enter Security Level to DENY access: @0F@", String(10, "X"), "", 1213417543)
Loop
GoTo 6826
6742 If s65530 = "H" Then GoTo 6780
If (s65530 = "h") = 0 Then GoTo 6826
6780 Print
Print " @0C@Security Levels -"
Print
Print " @0F@Enter up to ten valid security levels (as defined in MAKEWILD) to deny"
Print " access to the menu/menu option you are configuring."
WaitEnter
Loop
GoTo 6826
6826
End Function